package com.kehutong.crm.message.entity;

import org.coraframework.bean.valid.CheckField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

@Table(value="t_message_classify", comment="消息分类管理", idType = IDType.TIMESTAMP)
public class MessageClassify extends Entity {

    private static final long serialVersionUID = -4570429642696383456L;

    protected MessageClassify(String id) {
        super(id);
    }

    @CheckField("分类名称不能为空")
    @Column(comment="分类名称")
    private String name;

    @Column(comment="引用数量")
    private int count;

    @Column(comment="启用状态")
    private boolean enable;

    @Column(comment = "创建人")
    private String createUserName;

    @Column(comment = "创建人ID")
    private String createUserId;

    @Column(comment = "排序")
    private int sort;

    @Column(comment="逻辑删除")
    private boolean deleted;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
